
# replication code for 
# Can 'Soft' Advice From International Organizations Catalyze Natural Resource Sector Reform?
# Iasmin Goes and Terrence L. Chapman

# to replicate the results of this paper, please begin by running the following lines of code,
# which install all the packages in the exact version we used for the analysis
# please send questions to iasmin@colostate.edu

# ─ Session info ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# setting  value
# version  R version 4.3.1 (2023-06-16)
# os       macOS Ventura 13.0
# system   aarch64, darwin20
# ui       RStudio
# language (EN)
# collate  en_US.UTF-8
# ctype    en_US.UTF-8
# tz       America/Denver
# date     2023-11-28
# rstudio  2023.06.1+524 Mountain Hydrangea (desktop)
# pandoc   3.1.9 @ /opt/homebrew/bin/pandoc

install.packages("Require")

library(Require)

Require(c("rio (==0.5.29)","tidyverse (==2.0.0)","quanteda (==3.3.1)",
          "scales (==1.2.1)","zoo (==1.8-12)","ggpubr (==0.6.0)",
          "stargazer (==5.2.3)","knitr (==1.43)","sjPlot (==2.8.15)",
          "fect (==1.0.0)","brglm2 (==0.9)","ivreg (==0.6-2)","survival (==3.5-5)",
          "lmtest (==0.9-40)","sandwich (==0.5.10)","sensemakr (==0.1.4)"))

